package com.sl.ms.trade.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sl.ms.trade.domain.PayChannelDTO;
import com.sl.ms.trade.entity.PayChannelEntity;
import com.sl.ms.trade.mapper.PayChannelMapper;
import com.sl.ms.trade.service.PayChannelService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wjh
 * @create 2023-09-22 16:15
 */
@Service
public class PayChannelServiceImpl extends ServiceImpl<PayChannelMapper, PayChannelEntity> implements PayChannelService {
    @Override
    public Page<PayChannelEntity> findPayChannelPage(PayChannelDTO payChannelDTO, int pageNum, int pageSize) {
        return null;
    }

    @Override
    public PayChannelEntity findByEnterpriseId(Long enterpriseId, String channelLabel) {
        return super.getOne(Wrappers.<PayChannelEntity>lambdaQuery().eq(PayChannelEntity::getEnterpriseId,enterpriseId)
                .eq(PayChannelEntity::getChannelLabel,channelLabel));
    }

    @Override
    public PayChannelEntity createPayChannel(PayChannelDTO payChannelDTO) {
        return null;
    }

    @Override
    public Boolean updatePayChannel(PayChannelDTO payChannelDTO) {
        return null;
    }

    @Override
    public Boolean deletePayChannel(String[] checkedIds) {
        return null;
    }

    @Override
    public List<PayChannelEntity> findPayChannelList(String channelLabel) {
        return null;
    }
}
